package com.example.customnotification;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyBroadcast extends BroadcastReceiver {//这个也可以放到MainActivity里
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("click_btn")) {
            Toast.makeText(context, "you click btn1", Toast.LENGTH_SHORT).show();
        }
    }
}
